﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TP3Master.master" AutoEventWireup="true" CodeFile="frmTipoEspectaculo.aspx.cs" Inherits="Espectaculos_Configuracion_frmTipoEspectaculo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
 <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div style="height:500px">
    <table class="tablaForm" align="center">
        <tr>
            <td align="left" class="filaCab">
                <asp:Label ID="lblTituloProg" runat="server" Text="Listado de Tipos de Espectáculo" Font-Size="Larger"></asp:Label>
            </td>
            
        </tr>
        <tr>
            <td align="center">
                <table cellpadding="0" cellspacing="0" border="0" align="center">
                 
                    <tr>
                        <td align="right">
                            Tipo :
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtTipo" runat="server"></asp:TextBox>
                        </td>
                        <td>
                        </td>
                        <td align="right">
                            Estado :</td>
                        <td align="left">
                            <asp:DropDownList ID="ddlEstado" runat="server">
                            <asp:ListItem Text="-- Todos --" Value="-1"></asp:ListItem>
                            <asp:ListItem Text="Activo" Value="1"></asp:ListItem>
                            <asp:ListItem Text="Inactivo" Value="0"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                   
                    <tr>
                        <td align="right">
                           
                        </td>
                        <td align="right">
                           </td>
                        <td>
                           
                        </td> 
                        <td align="right">
                            <asp:Button ID="btnNuevo" runat="server" onclick="btnNuevo_Click" 
                                Text="Nuevo Tipo" />
                        </td>
                        <td  align="right">
                           
                            <asp:Button ID="btnBuscar" runat="server" Text="Buscar Tipo" 
                                onclick="btnBuscar_Click" />
                        </td> <td>
                          
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center">
                <asp:UpdatePanel ID="upnlArt" runat="server" UpdateMode="Conditional">
                    <ContentTemplate>
                        <asp:GridView ID="grvTipo" runat="server" BackColor="White" AutoGenerateColumns="False" 
                            BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4" OnRowDataBound="grvTipo_RowDataBound"
                            DataKeyNames="IdTipo" EmptyDataText="No se encontraron registros." >
                            <Columns>
                                <asp:BoundField DataField="IdTipo" HeaderText="ID" />
                                <asp:BoundField DataField="Tipo" HeaderText="Tipo" />
                               
                                <asp:TemplateField HeaderText="Estado" >
                                    <ItemStyle  HorizontalAlign="Center"/>
                                    <ItemTemplate >
                                        <asp:Image ID="imgEstado" runat="server" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:ImageButton ID="ibtnEditar" runat="server" ImageUrl="~/Images/botones/fileedit.gif"
                                            OnClick="ibtnEditar_Click" style="height: 16px" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                               
                            </Columns>
                            <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
                            <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
                            <RowStyle BackColor="White" ForeColor="#330099" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                            <SortedAscendingCellStyle BackColor="#FEFCEB" />
                            <SortedAscendingHeaderStyle BackColor="#AF0101" />
                            <SortedDescendingCellStyle BackColor="#F6F0C0" />
                            <SortedDescendingHeaderStyle BackColor="#7E0000" />
                        </asp:GridView>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="btnBuscar" EventName="Click" />
                    </Triggers>
                </asp:UpdatePanel>
            </td>
        </tr>
    </table>
    </div>


</asp:Content>

